
package com.gp.exception;

import java.io.Serializable;

/**
 * @author: 弓成龙
 * @date  : 2017年12月27日
 * @email : gcx909109@sina.cn
 * @description:  封装异常的信息，用于序列化返回到前端
 */
public class ExceptionInfo implements Serializable{

  private static final long serialVersionUID = 3749296510971970118L;

  private String happenTime;
  
  private String message;

  private String detail;

  public ExceptionInfo() {}
  
  public ExceptionInfo(String happenTime, String message, String detail) {
    this.happenTime = happenTime;
    this.message = message;
    this.detail = detail;
  }

  public void setHappenTime(String happenTime) {
    this.happenTime = happenTime;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public void setDetail(String detail) {
    this.detail = detail;
  }

  public String getHappenTime() {
    return happenTime;
  }

  public String getMessage() {
    return message;
  }

  public String getDetail() {
    return detail;
  }

  @Override
  public String toString() {
    return "ExceptionInfo [happenTime=" + happenTime + ", message=" + message + ", detail=" + detail
        +   "]";
  }
  
  
}

